<?php
namespace app\index\Validate;
use think\Validate;

class Liu extends Validate{

    //验证规则
    protected $rule = [
        'ly_uid'       =>'require|number',
        'ly_gid'       =>'require|number',
        'ly_content'   =>'require',
    ];

    protected $message  =  [
        'ly_uid.require'    => '留言用户id缺失',
        'ly_uid.number'     => '留言用户id错误',
        'ly_gid.require'    => '商品id缺失',
        'ly_gid.number'     => '商品id错误',
        'ly_content.require'=> '留言内容不能为空',
    ];


}